package com.lagou.blog.entity;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.io.Serializable;

public class BaseQuery<T extends Serializable> implements Serializable {
    private IPage page;
    private T query;
    public long getSize() {
        return this.page.getSize();
    }
    public long getOffset() {
        return this.page.offset();
    }
    public long getCurrent() {
        return this.page.getCurrent();
    }

    public void setPage(IPage page) {
        this.page = page;
    }

    public T getQuery() {
        return query;
    }

    public void setQuery(T query) {
        this.query = query;
    }
}
